module.exports = function (grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        uglify: {
            options: {},
            release: {
                files: {
                    'dist/js/manplayer.min.js': ['src/js/jquery.shCircleLoader.js', 'src/js/main.js', 'src/js/hls.js'],
                    'dist/js/m.manplayer.min.js': ['src/js/jquery.shCircleLoader.js', 'src/js/m-main.js', 'src/js/hls.js']
                }
            }
        },
        cssmin: {
            target: {
                files: {
                    'dist/css/manplayer.css': ['src/css/main.css', 'src/css/bootstrap.css'],
                    'dist/css/m.manplayer.css': ['src/css/m-main.css', 'src/css/bootstrap.css']
                }
            }
        },
        'font-spider': {
            options: {}
            ,
            main: {
                src: './demo/index.html'
            }
        }
    });


    grunt.loadNpmTasks('grunt-contrib-uglify');
    //  grunt.loadNpmTasks('grunt-contrib-concat');
    grunt.loadNpmTasks('grunt-contrib-cssmin');
    // grunt.loadNpmTasks('grunt-font-spider');

    // grunt.registerTask('default', ['uglify:release', 'cssmin', 'font-spider',]);
    grunt.registerTask('default', ['uglify:release', 'cssmin',]);

};

